package 剑指offer;

/**
 * @author zhangjunfei
 * @date 2023/7/19 14:10
 */
public class O_03 {

    public int findRepeatNumber(int[] nums) {
        for (int i = 0; i < nums.length-1; i++) {
            for (int j = i+1; j < nums.length; j++) {
                if (nums[j] == nums[i]) {
                    return nums[i];
                }
            }
        }
        return 0;
    }
}
